
circure_queue:     file format elf64-littleaarch64


Disassembly of section .init:

00000000004004b8 <_init>:
  4004b8:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4004bc:	910003fd 	mov	x29, sp
  4004c0:	9400003e 	bl	4005b8 <call_weak_fn>
  4004c4:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4004c8:	d65f03c0 	ret

Disassembly of section .plt:

00000000004004d0 <.plt>:
  4004d0:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  4004d4:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf260>
  4004d8:	f947fe11 	ldr	x17, [x16, #4088]
  4004dc:	913fe210 	add	x16, x16, #0xff8
  4004e0:	d61f0220 	br	x17
  4004e4:	d503201f 	nop
  4004e8:	d503201f 	nop
  4004ec:	d503201f 	nop

00000000004004f0 <exit@plt>:
  4004f0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4004f4:	f9400211 	ldr	x17, [x16]
  4004f8:	91000210 	add	x16, x16, #0x0
  4004fc:	d61f0220 	br	x17

0000000000400500 <malloc@plt>:
  400500:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400504:	f9400611 	ldr	x17, [x16, #8]
  400508:	91002210 	add	x16, x16, #0x8
  40050c:	d61f0220 	br	x17

0000000000400510 <__libc_start_main@plt>:
  400510:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400514:	f9400a11 	ldr	x17, [x16, #16]
  400518:	91004210 	add	x16, x16, #0x10
  40051c:	d61f0220 	br	x17

0000000000400520 <__gmon_start__@plt>:
  400520:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400524:	f9400e11 	ldr	x17, [x16, #24]
  400528:	91006210 	add	x16, x16, #0x18
  40052c:	d61f0220 	br	x17

0000000000400530 <abort@plt>:
  400530:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400534:	f9401211 	ldr	x17, [x16, #32]
  400538:	91008210 	add	x16, x16, #0x20
  40053c:	d61f0220 	br	x17

0000000000400540 <puts@plt>:
  400540:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400544:	f9401611 	ldr	x17, [x16, #40]
  400548:	9100a210 	add	x16, x16, #0x28
  40054c:	d61f0220 	br	x17

0000000000400550 <free@plt>:
  400550:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400554:	f9401a11 	ldr	x17, [x16, #48]
  400558:	9100c210 	add	x16, x16, #0x30
  40055c:	d61f0220 	br	x17

0000000000400560 <printf@plt>:
  400560:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400564:	f9401e11 	ldr	x17, [x16, #56]
  400568:	9100e210 	add	x16, x16, #0x38
  40056c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400570 <_start>:
  400570:	d280001d 	mov	x29, #0x0                   	// #0
  400574:	d280001e 	mov	x30, #0x0                   	// #0
  400578:	aa0003e5 	mov	x5, x0
  40057c:	f94003e1 	ldr	x1, [sp]
  400580:	910023e2 	add	x2, sp, #0x8
  400584:	910003e6 	mov	x6, sp
  400588:	580000c0 	ldr	x0, 4005a0 <_start+0x30>
  40058c:	580000e3 	ldr	x3, 4005a8 <_start+0x38>
  400590:	58000104 	ldr	x4, 4005b0 <_start+0x40>
  400594:	97ffffdf 	bl	400510 <__libc_start_main@plt>
  400598:	97ffffe6 	bl	400530 <abort@plt>
  40059c:	00000000 	.inst	0x00000000 ; undefined
  4005a0:	00400a14 	.word	0x00400a14
  4005a4:	00000000 	.word	0x00000000
  4005a8:	00400ca0 	.word	0x00400ca0
  4005ac:	00000000 	.word	0x00000000
  4005b0:	00400d18 	.word	0x00400d18
  4005b4:	00000000 	.word	0x00000000

00000000004005b8 <call_weak_fn>:
  4005b8:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf260>
  4005bc:	f947f000 	ldr	x0, [x0, #4064]
  4005c0:	b4000040 	cbz	x0, 4005c8 <call_weak_fn+0x10>
  4005c4:	17ffffd7 	b	400520 <__gmon_start__@plt>
  4005c8:	d65f03c0 	ret
  4005cc:	00000000 	.inst	0x00000000 ; undefined

00000000004005d0 <deregister_tm_clones>:
  4005d0:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  4005d4:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  4005d8:	91014021 	add	x1, x1, #0x50
  4005dc:	91014000 	add	x0, x0, #0x50
  4005e0:	91001c21 	add	x1, x1, #0x7
  4005e4:	cb000021 	sub	x1, x1, x0
  4005e8:	f100383f 	cmp	x1, #0xe
  4005ec:	540000a9 	b.ls	400600 <deregister_tm_clones+0x30>  // b.plast
  4005f0:	580000c1 	ldr	x1, 400608 <deregister_tm_clones+0x38>
  4005f4:	b4000061 	cbz	x1, 400600 <deregister_tm_clones+0x30>
  4005f8:	d61f0020 	br	x1
  4005fc:	d503201f 	nop
  400600:	d65f03c0 	ret
  400604:	d503201f 	nop
	...

0000000000400610 <register_tm_clones>:
  400610:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  400614:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400618:	91014021 	add	x1, x1, #0x50
  40061c:	91014000 	add	x0, x0, #0x50
  400620:	cb000021 	sub	x1, x1, x0
  400624:	9343fc21 	asr	x1, x1, #3
  400628:	8b41fc21 	add	x1, x1, x1, lsr #63
  40062c:	9341fc21 	asr	x1, x1, #1
  400630:	b4000081 	cbz	x1, 400640 <register_tm_clones+0x30>
  400634:	580000a2 	ldr	x2, 400648 <register_tm_clones+0x38>
  400638:	b4000042 	cbz	x2, 400640 <register_tm_clones+0x30>
  40063c:	d61f0040 	br	x2
  400640:	d65f03c0 	ret
  400644:	d503201f 	nop
	...

0000000000400650 <__do_global_dtors_aux>:
  400650:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400654:	910003fd 	mov	x29, sp
  400658:	f9000bf3 	str	x19, [sp, #16]
  40065c:	b0000093 	adrp	x19, 411000 <exit@GLIBC_2.17>
  400660:	39414260 	ldrb	w0, [x19, #80]
  400664:	35000080 	cbnz	w0, 400674 <__do_global_dtors_aux+0x24>
  400668:	97ffffda 	bl	4005d0 <deregister_tm_clones>
  40066c:	52800020 	mov	w0, #0x1                   	// #1
  400670:	39014260 	strb	w0, [x19, #80]
  400674:	f9400bf3 	ldr	x19, [sp, #16]
  400678:	a8c27bfd 	ldp	x29, x30, [sp], #32
  40067c:	d65f03c0 	ret

0000000000400680 <frame_dummy>:
  400680:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf260>
  400684:	91380000 	add	x0, x0, #0xe00
  400688:	f9400001 	ldr	x1, [x0]
  40068c:	b5000061 	cbnz	x1, 400698 <frame_dummy+0x18>
  400690:	17ffffe0 	b	400610 <register_tm_clones>
  400694:	d503201f 	nop
  400698:	58000101 	ldr	x1, 4006b8 <frame_dummy+0x38>
  40069c:	b4ffffa1 	cbz	x1, 400690 <frame_dummy+0x10>
  4006a0:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4006a4:	910003fd 	mov	x29, sp
  4006a8:	d63f0020 	blr	x1
  4006ac:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4006b0:	17ffffd8 	b	400610 <register_tm_clones>
  4006b4:	d503201f 	nop
	...

00000000004006c0 <init>:
  int front, rear;
  int max_size;
};

void init(struct queue * src, int max)
{
  4006c0:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4006c4:	910003fd 	mov	x29, sp
  4006c8:	f9000fa0 	str	x0, [x29, #24]
  4006cc:	b90017a1 	str	w1, [x29, #20]
  src->queue = (int *) malloc (sizeof(int) * max);
  4006d0:	b98017a0 	ldrsw	x0, [x29, #20]
  4006d4:	d37ef400 	lsl	x0, x0, #2
  4006d8:	97ffff8a 	bl	400500 <malloc@plt>
  4006dc:	aa0003e1 	mov	x1, x0
  4006e0:	f9400fa0 	ldr	x0, [x29, #24]
  4006e4:	f9000001 	str	x1, [x0]
  if (!src->queue) {
  4006e8:	f9400fa0 	ldr	x0, [x29, #24]
  4006ec:	f9400000 	ldr	x0, [x0]
  4006f0:	f100001f 	cmp	x0, #0x0
  4006f4:	540000c1 	b.ne	40070c <init+0x4c>  // b.any
    printf("init malloc fail.\n");
  4006f8:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  4006fc:	9134e000 	add	x0, x0, #0xd38
  400700:	97ffff90 	bl	400540 <puts@plt>
    exit(0);
  400704:	52800000 	mov	w0, #0x0                   	// #0
  400708:	97ffff7a 	bl	4004f0 <exit@plt>
  }
  
  src->max_size = max;
  40070c:	f9400fa0 	ldr	x0, [x29, #24]
  400710:	b94017a1 	ldr	w1, [x29, #20]
  400714:	b9001001 	str	w1, [x0, #16]
  src->front = src->rear = 0;
  400718:	f9400fa0 	ldr	x0, [x29, #24]
  40071c:	b9000c1f 	str	wzr, [x0, #12]
  400720:	f9400fa0 	ldr	x0, [x29, #24]
  400724:	b9400c01 	ldr	w1, [x0, #12]
  400728:	f9400fa0 	ldr	x0, [x29, #24]
  40072c:	b9000801 	str	w1, [x0, #8]
}
  400730:	d503201f 	nop
  400734:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400738:	d65f03c0 	ret

000000000040073c <empty>:

int empty(struct queue * src)
{
  40073c:	d10043ff 	sub	sp, sp, #0x10
  400740:	f90007e0 	str	x0, [sp, #8]
  if (src->front == src->rear)
  400744:	f94007e0 	ldr	x0, [sp, #8]
  400748:	b9400801 	ldr	w1, [x0, #8]
  40074c:	f94007e0 	ldr	x0, [sp, #8]
  400750:	b9400c00 	ldr	w0, [x0, #12]
  400754:	6b00003f 	cmp	w1, w0
  400758:	54000061 	b.ne	400764 <empty+0x28>  // b.any
    return 1;
  40075c:	52800020 	mov	w0, #0x1                   	// #1
  400760:	14000002 	b	400768 <empty+0x2c>
  else
    return 0;
  400764:	52800000 	mov	w0, #0x0                   	// #0
}
  400768:	910043ff 	add	sp, sp, #0x10
  40076c:	d65f03c0 	ret

0000000000400770 <full>:

int full(struct queue * src)
{
  400770:	d10043ff 	sub	sp, sp, #0x10
  400774:	f90007e0 	str	x0, [sp, #8]
  if (src->front == (src->rear + 1) % src->max_size) // 判断循环链表是否满，留一个预留空间不用 
  400778:	f94007e0 	ldr	x0, [sp, #8]
  40077c:	b9400802 	ldr	w2, [x0, #8]
  400780:	f94007e0 	ldr	x0, [sp, #8]
  400784:	b9400c00 	ldr	w0, [x0, #12]
  400788:	11000400 	add	w0, w0, #0x1
  40078c:	f94007e1 	ldr	x1, [sp, #8]
  400790:	b9401021 	ldr	w1, [x1, #16]
  400794:	1ac10c03 	sdiv	w3, w0, w1
  400798:	1b017c61 	mul	w1, w3, w1
  40079c:	4b010000 	sub	w0, w0, w1
  4007a0:	6b00005f 	cmp	w2, w0
  4007a4:	54000061 	b.ne	4007b0 <full+0x40>  // b.any
    return 1;
  4007a8:	52800020 	mov	w0, #0x1                   	// #1
  4007ac:	14000002 	b	4007b4 <full+0x44>
  else
    return 0;
  4007b0:	52800000 	mov	w0, #0x0                   	// #0
}
  4007b4:	910043ff 	add	sp, sp, #0x10
  4007b8:	d65f03c0 	ret

00000000004007bc <enqueue>:

void enqueue(struct queue * src, int value)
{
  4007bc:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4007c0:	910003fd 	mov	x29, sp
  4007c4:	f9000fa0 	str	x0, [x29, #24]
  4007c8:	b90017a1 	str	w1, [x29, #20]
  if (full(src)) {
  4007cc:	f9400fa0 	ldr	x0, [x29, #24]
  4007d0:	97ffffe8 	bl	400770 <full>
  4007d4:	7100001f 	cmp	w0, #0x0
  4007d8:	540000a0 	b.eq	4007ec <enqueue+0x30>  // b.none
    printf("queue was full.\n");
  4007dc:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  4007e0:	91354000 	add	x0, x0, #0xd50
  4007e4:	97ffff57 	bl	400540 <puts@plt>
    return ;
  4007e8:	14000014 	b	400838 <enqueue+0x7c>
  }

  src->queue[src->rear] = value;
  4007ec:	f9400fa0 	ldr	x0, [x29, #24]
  4007f0:	f9400001 	ldr	x1, [x0]
  4007f4:	f9400fa0 	ldr	x0, [x29, #24]
  4007f8:	b9400c00 	ldr	w0, [x0, #12]
  4007fc:	93407c00 	sxtw	x0, w0
  400800:	d37ef400 	lsl	x0, x0, #2
  400804:	8b000020 	add	x0, x1, x0
  400808:	b94017a1 	ldr	w1, [x29, #20]
  40080c:	b9000001 	str	w1, [x0]
  src->rear = (src->rear + 1) % src->max_size;  // 取余，当src->rear+1=max_size时，又转回到0.
  400810:	f9400fa0 	ldr	x0, [x29, #24]
  400814:	b9400c00 	ldr	w0, [x0, #12]
  400818:	11000400 	add	w0, w0, #0x1
  40081c:	f9400fa1 	ldr	x1, [x29, #24]
  400820:	b9401021 	ldr	w1, [x1, #16]
  400824:	1ac10c02 	sdiv	w2, w0, w1
  400828:	1b017c41 	mul	w1, w2, w1
  40082c:	4b010001 	sub	w1, w0, w1
  400830:	f9400fa0 	ldr	x0, [x29, #24]
  400834:	b9000c01 	str	w1, [x0, #12]
}
  400838:	a8c27bfd 	ldp	x29, x30, [sp], #32
  40083c:	d65f03c0 	ret

0000000000400840 <dequeue>:

void dequeue(struct queue * src)
{
  400840:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400844:	910003fd 	mov	x29, sp
  400848:	f9000fa0 	str	x0, [x29, #24]
  if (empty(src)) {
  40084c:	f9400fa0 	ldr	x0, [x29, #24]
  400850:	97ffffbb 	bl	40073c <empty>
  400854:	7100001f 	cmp	w0, #0x0
  400858:	540000a0 	b.eq	40086c <dequeue+0x2c>  // b.none
    printf("queue is empty.\n");
  40085c:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  400860:	91358000 	add	x0, x0, #0xd60
  400864:	97ffff37 	bl	400540 <puts@plt>
    return ;
  400868:	14000014 	b	4008b8 <dequeue+0x78>
  }
  
  src->queue[src->front] = -1;
  40086c:	f9400fa0 	ldr	x0, [x29, #24]
  400870:	f9400001 	ldr	x1, [x0]
  400874:	f9400fa0 	ldr	x0, [x29, #24]
  400878:	b9400800 	ldr	w0, [x0, #8]
  40087c:	93407c00 	sxtw	x0, w0
  400880:	d37ef400 	lsl	x0, x0, #2
  400884:	8b000020 	add	x0, x1, x0
  400888:	12800001 	mov	w1, #0xffffffff            	// #-1
  40088c:	b9000001 	str	w1, [x0]
  src->front = (src->front + 1) % src->max_size;
  400890:	f9400fa0 	ldr	x0, [x29, #24]
  400894:	b9400800 	ldr	w0, [x0, #8]
  400898:	11000400 	add	w0, w0, #0x1
  40089c:	f9400fa1 	ldr	x1, [x29, #24]
  4008a0:	b9401021 	ldr	w1, [x1, #16]
  4008a4:	1ac10c02 	sdiv	w2, w0, w1
  4008a8:	1b017c41 	mul	w1, w2, w1
  4008ac:	4b010001 	sub	w1, w0, w1
  4008b0:	f9400fa0 	ldr	x0, [x29, #24]
  4008b4:	b9000801 	str	w1, [x0, #8]
  //src->front++;
}
  4008b8:	a8c27bfd 	ldp	x29, x30, [sp], #32
  4008bc:	d65f03c0 	ret

00000000004008c0 <display>:

void display(struct queue * src)
{
  4008c0:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  4008c4:	910003fd 	mov	x29, sp
  4008c8:	f9000fa0 	str	x0, [x29, #24]
  int i;
  
  printf("display: ");
  4008cc:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  4008d0:	9135c000 	add	x0, x0, #0xd70
  4008d4:	97ffff23 	bl	400560 <printf@plt>
  for (i = src->front; i < src->max_size; i++) {
  4008d8:	f9400fa0 	ldr	x0, [x29, #24]
  4008dc:	b9400800 	ldr	w0, [x0, #8]
  4008e0:	b9002fa0 	str	w0, [x29, #44]
  4008e4:	1400000d 	b	400918 <display+0x58>
    printf(" %d ", src->queue[i]);
  4008e8:	f9400fa0 	ldr	x0, [x29, #24]
  4008ec:	f9400001 	ldr	x1, [x0]
  4008f0:	b9802fa0 	ldrsw	x0, [x29, #44]
  4008f4:	d37ef400 	lsl	x0, x0, #2
  4008f8:	8b000020 	add	x0, x1, x0
  4008fc:	b9400001 	ldr	w1, [x0]
  400900:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  400904:	91360000 	add	x0, x0, #0xd80
  400908:	97ffff16 	bl	400560 <printf@plt>
  for (i = src->front; i < src->max_size; i++) {
  40090c:	b9402fa0 	ldr	w0, [x29, #44]
  400910:	11000400 	add	w0, w0, #0x1
  400914:	b9002fa0 	str	w0, [x29, #44]
  400918:	f9400fa0 	ldr	x0, [x29, #24]
  40091c:	b9401001 	ldr	w1, [x0, #16]
  400920:	b9402fa0 	ldr	w0, [x29, #44]
  400924:	6b00003f 	cmp	w1, w0
  400928:	54fffe0c 	b.gt	4008e8 <display+0x28>
  }
  printf("\n\n");
  40092c:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  400930:	91362000 	add	x0, x0, #0xd88
  400934:	97ffff03 	bl	400540 <puts@plt>
}
  400938:	d503201f 	nop
  40093c:	a8c37bfd 	ldp	x29, x30, [sp], #48
  400940:	d65f03c0 	ret

0000000000400944 <display_all>:

void display_all(struct queue * src)
{
  400944:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  400948:	910003fd 	mov	x29, sp
  40094c:	f9000fa0 	str	x0, [x29, #24]
  int i;
  
  printf("display all: ");
  400950:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  400954:	91364000 	add	x0, x0, #0xd90
  400958:	97ffff02 	bl	400560 <printf@plt>
  for (i = 0; i < src->max_size; i++) {
  40095c:	b9002fbf 	str	wzr, [x29, #44]
  400960:	1400000d 	b	400994 <display_all+0x50>
    printf(" %d ", src->queue[i]);
  400964:	f9400fa0 	ldr	x0, [x29, #24]
  400968:	f9400001 	ldr	x1, [x0]
  40096c:	b9802fa0 	ldrsw	x0, [x29, #44]
  400970:	d37ef400 	lsl	x0, x0, #2
  400974:	8b000020 	add	x0, x1, x0
  400978:	b9400001 	ldr	w1, [x0]
  40097c:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  400980:	91360000 	add	x0, x0, #0xd80
  400984:	97fffef7 	bl	400560 <printf@plt>
  for (i = 0; i < src->max_size; i++) {
  400988:	b9402fa0 	ldr	w0, [x29, #44]
  40098c:	11000400 	add	w0, w0, #0x1
  400990:	b9002fa0 	str	w0, [x29, #44]
  400994:	f9400fa0 	ldr	x0, [x29, #24]
  400998:	b9401001 	ldr	w1, [x0, #16]
  40099c:	b9402fa0 	ldr	w0, [x29, #44]
  4009a0:	6b00003f 	cmp	w1, w0
  4009a4:	54fffe0c 	b.gt	400964 <display_all+0x20>
  }
  printf("\n\n");
  4009a8:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  4009ac:	91362000 	add	x0, x0, #0xd88
  4009b0:	97fffee4 	bl	400540 <puts@plt>
}
  4009b4:	d503201f 	nop
  4009b8:	a8c37bfd 	ldp	x29, x30, [sp], #48
  4009bc:	d65f03c0 	ret

00000000004009c0 <clean>:

void clean(struct queue * src)
{
  4009c0:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4009c4:	910003fd 	mov	x29, sp
  4009c8:	f9000fa0 	str	x0, [x29, #24]
  if (src->queue != NULL) {
  4009cc:	f9400fa0 	ldr	x0, [x29, #24]
  4009d0:	f9400000 	ldr	x0, [x0]
  4009d4:	f100001f 	cmp	x0, #0x0
  4009d8:	54000180 	b.eq	400a08 <clean+0x48>  // b.none
    free(src->queue);
  4009dc:	f9400fa0 	ldr	x0, [x29, #24]
  4009e0:	f9400000 	ldr	x0, [x0]
  4009e4:	97fffedb 	bl	400550 <free@plt>
    src->queue = NULL;
  4009e8:	f9400fa0 	ldr	x0, [x29, #24]
  4009ec:	f900001f 	str	xzr, [x0]
    src->front = 0;
  4009f0:	f9400fa0 	ldr	x0, [x29, #24]
  4009f4:	b900081f 	str	wzr, [x0, #8]
    src->rear  = 0;
  4009f8:	f9400fa0 	ldr	x0, [x29, #24]
  4009fc:	b9000c1f 	str	wzr, [x0, #12]
    src->max_size = 0;
  400a00:	f9400fa0 	ldr	x0, [x29, #24]
  400a04:	b900101f 	str	wzr, [x0, #16]
  }
}
  400a08:	d503201f 	nop
  400a0c:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400a10:	d65f03c0 	ret

0000000000400a14 <main>:

int main()
{
  400a14:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  400a18:	910003fd 	mov	x29, sp
  struct queue queue;
  int max_size = 10;
  400a1c:	52800140 	mov	w0, #0xa                   	// #10
  400a20:	b9002fa0 	str	w0, [x29, #44]

  init(& queue, max_size);
  400a24:	910043a0 	add	x0, x29, #0x10
  400a28:	b9402fa1 	ldr	w1, [x29, #44]
  400a2c:	97ffff25 	bl	4006c0 <init>
  enqueue(& queue, 1);
  400a30:	910043a0 	add	x0, x29, #0x10
  400a34:	52800021 	mov	w1, #0x1                   	// #1
  400a38:	97ffff61 	bl	4007bc <enqueue>
  enqueue(& queue, 2);
  400a3c:	910043a0 	add	x0, x29, #0x10
  400a40:	52800041 	mov	w1, #0x2                   	// #2
  400a44:	97ffff5e 	bl	4007bc <enqueue>
  enqueue(& queue, 3);
  400a48:	910043a0 	add	x0, x29, #0x10
  400a4c:	52800061 	mov	w1, #0x3                   	// #3
  400a50:	97ffff5b 	bl	4007bc <enqueue>
  enqueue(& queue, 4);
  400a54:	910043a0 	add	x0, x29, #0x10
  400a58:	52800081 	mov	w1, #0x4                   	// #4
  400a5c:	97ffff58 	bl	4007bc <enqueue>
  enqueue(& queue, 5);
  400a60:	910043a0 	add	x0, x29, #0x10
  400a64:	528000a1 	mov	w1, #0x5                   	// #5
  400a68:	97ffff55 	bl	4007bc <enqueue>
  enqueue(& queue, 6);
  400a6c:	910043a0 	add	x0, x29, #0x10
  400a70:	528000c1 	mov	w1, #0x6                   	// #6
  400a74:	97ffff52 	bl	4007bc <enqueue>
  display(& queue);	// 1  2  3  4  5  6  0  0  0  0 
  400a78:	910043a0 	add	x0, x29, #0x10
  400a7c:	97ffff91 	bl	4008c0 <display>

  dequeue(& queue);	// del 1
  400a80:	910043a0 	add	x0, x29, #0x10
  400a84:	97ffff6f 	bl	400840 <dequeue>
  dequeue(& queue);	// del 2
  400a88:	910043a0 	add	x0, x29, #0x10
  400a8c:	97ffff6d 	bl	400840 <dequeue>
  display(& queue);	// 3  4  5  6  0  0  0  0
  400a90:	910043a0 	add	x0, x29, #0x10
  400a94:	97ffff8b 	bl	4008c0 <display>

  enqueue(& queue, 11);
  400a98:	910043a0 	add	x0, x29, #0x10
  400a9c:	52800161 	mov	w1, #0xb                   	// #11
  400aa0:	97ffff47 	bl	4007bc <enqueue>
  enqueue(& queue, 22);
  400aa4:	910043a0 	add	x0, x29, #0x10
  400aa8:	528002c1 	mov	w1, #0x16                  	// #22
  400aac:	97ffff44 	bl	4007bc <enqueue>
  enqueue(& queue, 33);
  400ab0:	910043a0 	add	x0, x29, #0x10
  400ab4:	52800421 	mov	w1, #0x21                  	// #33
  400ab8:	97ffff41 	bl	4007bc <enqueue>
  enqueue(& queue, 44);
  400abc:	910043a0 	add	x0, x29, #0x10
  400ac0:	52800581 	mov	w1, #0x2c                  	// #44
  400ac4:	97ffff3e 	bl	4007bc <enqueue>
  enqueue(& queue, 55);
  400ac8:	910043a0 	add	x0, x29, #0x10
  400acc:	528006e1 	mov	w1, #0x37                  	// #55
  400ad0:	97ffff3b 	bl	4007bc <enqueue>
  enqueue(& queue, 66);	// queue was full.
  400ad4:	910043a0 	add	x0, x29, #0x10
  400ad8:	52800841 	mov	w1, #0x42                  	// #66
  400adc:	97ffff38 	bl	4007bc <enqueue>
  display(& queue);		// 3  4  5  6  11  22  33  44 
  400ae0:	910043a0 	add	x0, x29, #0x10
  400ae4:	97ffff77 	bl	4008c0 <display>
  display_all(& queue);	// 55  -1  3  4  5  6  11  22  33  44
  400ae8:	910043a0 	add	x0, x29, #0x10
  400aec:	97ffff96 	bl	400944 <display_all>

  dequeue(& queue);		// del 3
  400af0:	910043a0 	add	x0, x29, #0x10
  400af4:	97ffff53 	bl	400840 <dequeue>
  dequeue(& queue);		// del 4
  400af8:	910043a0 	add	x0, x29, #0x10
  400afc:	97ffff51 	bl	400840 <dequeue>
  display(& queue);		// 5  6  11  22  33  44
  400b00:	910043a0 	add	x0, x29, #0x10
  400b04:	97ffff6f 	bl	4008c0 <display>
  display_all(& queue);	// 55  -1  -1  -1  5  6  11  22  33  44
  400b08:	910043a0 	add	x0, x29, #0x10
  400b0c:	97ffff8e 	bl	400944 <display_all>

  dequeue(& queue);		// del 5
  400b10:	910043a0 	add	x0, x29, #0x10
  400b14:	97ffff4b 	bl	400840 <dequeue>
  dequeue(& queue);		// del 6
  400b18:	910043a0 	add	x0, x29, #0x10
  400b1c:	97ffff49 	bl	400840 <dequeue>
  dequeue(& queue);		// del 11
  400b20:	910043a0 	add	x0, x29, #0x10
  400b24:	97ffff47 	bl	400840 <dequeue>
  dequeue(& queue);		// del 22
  400b28:	910043a0 	add	x0, x29, #0x10
  400b2c:	97ffff45 	bl	400840 <dequeue>
  dequeue(& queue);		// del 33
  400b30:	910043a0 	add	x0, x29, #0x10
  400b34:	97ffff43 	bl	400840 <dequeue>
  dequeue(& queue);		// del 44
  400b38:	910043a0 	add	x0, x29, #0x10
  400b3c:	97ffff41 	bl	400840 <dequeue>
  display(& queue);		// 55  -1  -1  -1  -1  -1  -1  -1  -1  -1
  400b40:	910043a0 	add	x0, x29, #0x10
  400b44:	97ffff5f 	bl	4008c0 <display>
  display_all(& queue);	// 55  -1  -1  -1  -1  -1  -1  -1  -1  -1 
  400b48:	910043a0 	add	x0, x29, #0x10
  400b4c:	97ffff7e 	bl	400944 <display_all>

  enqueue(& queue, 1);
  400b50:	910043a0 	add	x0, x29, #0x10
  400b54:	52800021 	mov	w1, #0x1                   	// #1
  400b58:	97ffff19 	bl	4007bc <enqueue>
  enqueue(& queue, 2);
  400b5c:	910043a0 	add	x0, x29, #0x10
  400b60:	52800041 	mov	w1, #0x2                   	// #2
  400b64:	97ffff16 	bl	4007bc <enqueue>
  enqueue(& queue, 3);
  400b68:	910043a0 	add	x0, x29, #0x10
  400b6c:	52800061 	mov	w1, #0x3                   	// #3
  400b70:	97ffff13 	bl	4007bc <enqueue>
  enqueue(& queue, 4);
  400b74:	910043a0 	add	x0, x29, #0x10
  400b78:	52800081 	mov	w1, #0x4                   	// #4
  400b7c:	97ffff10 	bl	4007bc <enqueue>
  enqueue(& queue, 5);
  400b80:	910043a0 	add	x0, x29, #0x10
  400b84:	528000a1 	mov	w1, #0x5                   	// #5
  400b88:	97ffff0d 	bl	4007bc <enqueue>
  enqueue(& queue, 6);
  400b8c:	910043a0 	add	x0, x29, #0x10
  400b90:	528000c1 	mov	w1, #0x6                   	// #6
  400b94:	97ffff0a 	bl	4007bc <enqueue>
  display(& queue);		// 55  1  2  3  4  5  6  -1  -1  -1
  400b98:	910043a0 	add	x0, x29, #0x10
  400b9c:	97ffff49 	bl	4008c0 <display>
  display_all(& queue);	// 55  1  2  3  4  5  6  -1  -1  -1 
  400ba0:	910043a0 	add	x0, x29, #0x10
  400ba4:	97ffff68 	bl	400944 <display_all>


  enqueue(& queue, 11);
  400ba8:	910043a0 	add	x0, x29, #0x10
  400bac:	52800161 	mov	w1, #0xb                   	// #11
  400bb0:	97ffff03 	bl	4007bc <enqueue>
  enqueue(& queue, 22);
  400bb4:	910043a0 	add	x0, x29, #0x10
  400bb8:	528002c1 	mov	w1, #0x16                  	// #22
  400bbc:	97ffff00 	bl	4007bc <enqueue>
  enqueue(& queue, 33);	// queue was full.
  400bc0:	910043a0 	add	x0, x29, #0x10
  400bc4:	52800421 	mov	w1, #0x21                  	// #33
  400bc8:	97fffefd 	bl	4007bc <enqueue>
  enqueue(& queue, 44);	// queue was full.
  400bcc:	910043a0 	add	x0, x29, #0x10
  400bd0:	52800581 	mov	w1, #0x2c                  	// #44
  400bd4:	97fffefa 	bl	4007bc <enqueue>
  enqueue(& queue, 55);	// queue was full.
  400bd8:	910043a0 	add	x0, x29, #0x10
  400bdc:	528006e1 	mov	w1, #0x37                  	// #55
  400be0:	97fffef7 	bl	4007bc <enqueue>
  enqueue(& queue, 66);	// queue was full.
  400be4:	910043a0 	add	x0, x29, #0x10
  400be8:	52800841 	mov	w1, #0x42                  	// #66
  400bec:	97fffef4 	bl	4007bc <enqueue>
  display(& queue);		// 55  1  2  3  4  5  6  11  22  -1 
  400bf0:	910043a0 	add	x0, x29, #0x10
  400bf4:	97ffff33 	bl	4008c0 <display>
  display_all(& queue);	// 55  1  2  3  4  5  6  11  22  -1 
  400bf8:	910043a0 	add	x0, x29, #0x10
  400bfc:	97ffff52 	bl	400944 <display_all>

  dequeue(& queue);		// del 55
  400c00:	910043a0 	add	x0, x29, #0x10
  400c04:	97ffff0f 	bl	400840 <dequeue>
  dequeue(& queue);		// del 1
  400c08:	910043a0 	add	x0, x29, #0x10
  400c0c:	97ffff0d 	bl	400840 <dequeue>
  display(& queue);		// 2  3  4  5  6  11  22  -1
  400c10:	910043a0 	add	x0, x29, #0x10
  400c14:	97ffff2b 	bl	4008c0 <display>
  display_all(& queue);	// -1  -1  2  3  4  5  6  11  22  -1
  400c18:	910043a0 	add	x0, x29, #0x10
  400c1c:	97ffff4a 	bl	400944 <display_all>

  enqueue(& queue, 83);
  400c20:	910043a0 	add	x0, x29, #0x10
  400c24:	52800a61 	mov	w1, #0x53                  	// #83
  400c28:	97fffee5 	bl	4007bc <enqueue>
  enqueue(& queue, 84);
  400c2c:	910043a0 	add	x0, x29, #0x10
  400c30:	52800a81 	mov	w1, #0x54                  	// #84
  400c34:	97fffee2 	bl	4007bc <enqueue>
  enqueue(& queue, 85);	// queue was full.
  400c38:	910043a0 	add	x0, x29, #0x10
  400c3c:	52800aa1 	mov	w1, #0x55                  	// #85
  400c40:	97fffedf 	bl	4007bc <enqueue>
  enqueue(& queue, 86);	// queue was full.
  400c44:	910043a0 	add	x0, x29, #0x10
  400c48:	52800ac1 	mov	w1, #0x56                  	// #86
  400c4c:	97fffedc 	bl	4007bc <enqueue>
  display(& queue);		// 2  3  4  5  6  11  22  83 
  400c50:	910043a0 	add	x0, x29, #0x10
  400c54:	97ffff1b 	bl	4008c0 <display>
  display_all(& queue);	// 84  -1  2  3  4  5  6  11  22  83
  400c58:	910043a0 	add	x0, x29, #0x10
  400c5c:	97ffff3a 	bl	400944 <display_all>

  enqueue(& queue, 93);	// queue was full.
  400c60:	910043a0 	add	x0, x29, #0x10
  400c64:	52800ba1 	mov	w1, #0x5d                  	// #93
  400c68:	97fffed5 	bl	4007bc <enqueue>
  enqueue(& queue, 96);	// queue was full.
  400c6c:	910043a0 	add	x0, x29, #0x10
  400c70:	52800c01 	mov	w1, #0x60                  	// #96
  400c74:	97fffed2 	bl	4007bc <enqueue>
  display(& queue);		// 2  3  4  5  6  11  22  83
  400c78:	910043a0 	add	x0, x29, #0x10
  400c7c:	97ffff11 	bl	4008c0 <display>
  display_all(& queue);	// 84  -1  2  3  4  5  6  11  22  83
  400c80:	910043a0 	add	x0, x29, #0x10
  400c84:	97ffff30 	bl	400944 <display_all>

  clean(& queue);
  400c88:	910043a0 	add	x0, x29, #0x10
  400c8c:	97ffff4d 	bl	4009c0 <clean>
  400c90:	52800000 	mov	w0, #0x0                   	// #0
}
  400c94:	a8c37bfd 	ldp	x29, x30, [sp], #48
  400c98:	d65f03c0 	ret
  400c9c:	00000000 	.inst	0x00000000 ; undefined

0000000000400ca0 <__libc_csu_init>:
  400ca0:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400ca4:	910003fd 	mov	x29, sp
  400ca8:	a9025bf5 	stp	x21, x22, [sp, #32]
  400cac:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf260>
  400cb0:	a90153f3 	stp	x19, x20, [sp, #16]
  400cb4:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf260>
  400cb8:	9137c2b5 	add	x21, x21, #0xdf0
  400cbc:	9137e294 	add	x20, x20, #0xdf8
  400cc0:	cb150294 	sub	x20, x20, x21
  400cc4:	a90363f7 	stp	x23, x24, [sp, #48]
  400cc8:	aa0203f6 	mov	x22, x2
  400ccc:	2a0003f8 	mov	w24, w0
  400cd0:	aa0103f7 	mov	x23, x1
  400cd4:	97fffdf9 	bl	4004b8 <_init>
  400cd8:	9343fe94 	asr	x20, x20, #3
  400cdc:	b4000154 	cbz	x20, 400d04 <__libc_csu_init+0x64>
  400ce0:	d2800013 	mov	x19, #0x0                   	// #0
  400ce4:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  400ce8:	aa1603e2 	mov	x2, x22
  400cec:	aa1703e1 	mov	x1, x23
  400cf0:	2a1803e0 	mov	w0, w24
  400cf4:	91000673 	add	x19, x19, #0x1
  400cf8:	d63f0060 	blr	x3
  400cfc:	eb13029f 	cmp	x20, x19
  400d00:	54ffff21 	b.ne	400ce4 <__libc_csu_init+0x44>  // b.any
  400d04:	a94153f3 	ldp	x19, x20, [sp, #16]
  400d08:	a9425bf5 	ldp	x21, x22, [sp, #32]
  400d0c:	a94363f7 	ldp	x23, x24, [sp, #48]
  400d10:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400d14:	d65f03c0 	ret

0000000000400d18 <__libc_csu_fini>:
  400d18:	d65f03c0 	ret

Disassembly of section .fini:

0000000000400d1c <_fini>:
  400d1c:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400d20:	910003fd 	mov	x29, sp
  400d24:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400d28:	d65f03c0 	ret
